package jp.co.tms.internal.runserver.protocol;

public interface IPackage {

	public static final int SYS_BYTE_SIZE = 1 ;
	public static final int SYS_INT_SIZE  = Integer.SIZE / Byte.SIZE ;
	
	public static final int PACKAGE_DATA_COMMAND_TASK_LEN = 256;
	public static final int PACKAGE_DATA_COMMAND_LEN      = (PACKAGE_DATA_COMMAND_TASK_LEN + SYS_INT_SIZE);
	public static final int PACKAGE_DATA_LEN              = (PACKAGE_DATA_COMMAND_LEN + 2 *SYS_INT_SIZE);
	public static final int PACKAGE_LEN                   = (PACKAGE_DATA_LEN + 2 * SYS_BYTE_SIZE);

	public static final int PT_HANDSHAKE     = 1 ;
	public static final int PT_HANDSHAKE_ACK = 2 ;
	public static final int PT_RUN           = 3 ;
	public static final int PT_RUN_ACK       = 4 ;  /* Not Used */
	public static final int PT_KILL          = 5 ;  /* Not Used */
	public static final int PT_KILL_ACK      = 6 ;  /* Not Used */
	public static final int PT_FINISH        = 7 ;
	public static final int PT_FINISH_ACK    = 8 ;  /* Not Used */
	
	public byte[] getBytes();

}
